<!DOCTYPE html>
<html lang="en">
<head>
    <title>无线路由管理平台</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="css/unicorn.main.css" />
    <link rel="stylesheet" href="css/unicorn.grey.css" class="skin-color" />

    <link rel="stylesheet" href="/css/theme1/jquery-ui-1.10.4.custom.css" />
    <link rel="stylesheet" href="/css/ui.jqgrid.css" />
    <link rel="stylesheet" href="/css/jquery.qtip.min.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>

<%include inc.html%>

<div id="content">

    <div id="breadcrumb">
        <a href="index.html" title="返回控制台" class="tip-bottom"><i class="icon-home"></i> 无线路由管理平台</a>
        <a href="#" class="current">代理商/商户管理</a>


    </div>
    <div class="container-fluid">


        <div class="row-fluid">
            <div class="span12">
                <div style="margin: 0 auto;"  class="alert alert-block alert-<%if(typeof(retdata.success)!="undefined" && retdata.success==false){%>error<%}else{%>info<%}%>" id="info">
                    <i class="  icon-cog"></i>
                    <%=retdata.info %>
                    <a href="#" data-dismiss="alert" class="close">×</a>
                </div>
            </div>
        </div>


        <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                        <span class="icon">
                            <i class="icon-align-justify"></i>
                        </span>
                    <h5>代理商/商户管理</h5>

                    <span class="label label-important"></span>
                </div>
                <div class="widget-content nopadding">
                    <form class="form-horizontal" method="post" name="userinfo" id="userinfo" novalidate="novalidate" />

                    <input id="oper" style="display: none" name="oper">
                    <input id="id" style="display: none" name="id">

                    <div class="control-group">
                        <label class="control-label">代理商/商户用户名</label>
                        <div class="controls">
                            <input type="text" name="username" id="username"
                                   value="<%if(typeof(viruser.username)!=="undefined" && !!viruser.username ){%><%=viruser.username%><%}%>"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">密码</label>
                        <div class="controls">
                            <input type="password" name="pwd" id="pwd"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">确认密码</label>
                        <div class="controls">
                            <input type="password" name="pwd1" id="pwd1"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">代理商/商户名（公司名）</label>
                        <div class="controls">
                            <input type="text" name="companyname" id="companyname"
                                   value="<%if(typeof(viruser.companyname)!=="undefined" && !!viruser.companyname ){%><%=viruser.companyname%><%}%>"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">权限分级</label>
                        <div class="controls">
                            <input id="rolelistnum" style="display: none" name="rolelistnum" value="<%=retdata.rolelist.length%>">


                                <% retdata.rolelist.forEach(function(post, index){%>

                                <%if(retdata.roleinfo.childroleid==post.id
                                    || (retdata.roleinfo.childroleid.split(',')).indexOf(post.id)!==-1
                                    || retdata.roleinfo.flag==99){%>
                                <label>
                                        <span id="a<%=index%>" class="green"  data-hasqtip="title">
                                        <input value="<%=post.id%>_<%=post.validmonth%>" type="radio" name="roleid" id="roleid"
                                        <%if(post.id==viruser.roleid){%>
                                            <%='checked'%>
                                        <%}%>>

                                        <span class="blue" class="lbl"><%=post.rolename%></span>
                                        </span>
                                </label>

                                <div class="tooltiptext<%=index%>" style="display: none">
                                    权限分级名称：<%=post.rolename%>
                                    <BR><BR>可配置下属商户数：<%if(post.usernumber==-1){%>无限制<%}else{%><%=post.usernumber%>个<%}%>
                                    <BR><BR>可配置wifi数：<%if(post.wifinumber==-1){%>无限制<%}else{%><%=post.wifinumber%>个<%}%>
                                    <BR><BR>可配置ap数：<%if(post.apnumber==-1){%>无限制<%}else{%><%=post.apnumber%>个<%}%>
                                    <BR><BR>可配置认证权限： <%-post.authnumber%>
                                    <BR><BR>可配置广告数：<%if(post.adnumber==-1){%>无限制<%}else{%><%=post.adnumber%>个<%}%>
                                    <BR><BR>统计权限：<%-post.statnumber%>
                                    <BR><BR>收费标准：<%=post.fee%>元
                                </div>
                                <%}%>
                                <%})%>






                        </div>
                    </div>



                    <div class="control-group">
                        <label class="control-label">昵称</label>
                        <div class="controls">
                            <input type="text" name="nickname" id="nickname"
                                   value="<%if(typeof(viruser.nickname)!=="undefined" && !!viruser.nickname ){%><%=viruser.nickname%><%}%>"/>

                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">手机号码</label>
                        <div class="controls">
                            <input type="text" name="phonenumber" id="phonenumber"
                                   value="<%if(typeof(viruser.phonenumber)!=="undefined" && !!viruser.phonenumber ){%><%=viruser.phonenumber%><%}%>"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">电子邮箱</label>
                        <div class="controls">
                            <input type="text" name="email" id="email"
                                   value="<%if(typeof(viruser.email)!=="undefined" && !!viruser.email ){%><%=viruser.email%><%}%>"/>
                        </div>
                    </div>



                    <div class="form-actions">
                        <input type="submit" value="提交" class="btn btn-danger" />
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    </div>
    <div class="row-fluid">
        <div id="footer" class="span12">
            2014 &copy; 无线广告路由云管理平台
        </div>
    </div>
</div>

<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.validate.js"></script>
<script src="js/unicorn.js"></script>
<script type='text/javascript' src='js/bootbox.min.js' charset='utf-8'></script>
<script src="js/jquery.qtip.min.js"></script>
<script src="js/unicorn.userinfo.js"></script>
</body>
</html>
